/**
 * getUrlKey 截取地址栏参数
 * @param value
 * @returns {String}
 */
function getUrlKey(name) {
//  alert(location.href)'http://dingdingceshi.vaiwan.com/?dd_nav_bgcolor=FF5E97F6&custid=ding54ba1930f28afe8b35c2f4657eb6378f#/' 
    return (
      decodeURIComponent(
        (new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ''])[1].replace(/\+/g, '%20')
      ) || null
    );
  }
  
  export default {
    getUrlKey,
  };